package com.cg.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cg.dao.BaseCommentDao;
import com.cg.entity.BaseComment;
import com.cg.entity.SysUserEntity;
import com.cg.utils.R;

/**
 * 评论
 * @author cumt
 *
 */
@Service("baseCommentServiceImpl")
public class BaseCommentServiceImpl {
	
	@Autowired
	BaseCommentDao baseCommentDao;
	
	public List<BaseComment> queryList(Map<String, Object> params){
		
		return baseCommentDao.queryList(params);
	}
	
	public R save(BaseComment comment){
		baseCommentDao.save(comment);
		return R.ok();
	}
	
	public int queryTotal(Map<String,Object> query) {
		
		return baseCommentDao.queryTotal();
	}
	
	public R update(BaseComment comment){
		baseCommentDao.update(comment);
		return R.ok();
	}
	
	public void deleteBatch(Long[] ids) {
		baseCommentDao.deleteBatch(ids);
	}

	
	public BaseComment queryObject(Long id) {
		return baseCommentDao.queryObject(id);
	}

	

}
